<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="home" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>DashLoon</title>
<link rel="stylesheet" href="${home}/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="${home}/assets/libs/layui/css/layui.css">
</head>
<body class="layui-layout-body">

	<div class="layui-layout layui-layout-admin">

		<jsp:include page="header.jsp"></jsp:include>

		<jsp:include page="left.jsp"></jsp:include>
		
		<jsp:include page="body.jsp"></jsp:include>
		
		<div class="layui-body" style="overflow:unset">
			<iframe frameborder="0" scrolling="yes" style="width: 100%" src=""
				id="isFrame"> </iframe>
		</div>

		<jsp:include page="footer.jsp"></jsp:include>
	</div>
<script src="${home}/assets/js/jquery.min.js"></script>
<script src="${home}/assets/libs/layui/layui.js"></script>
<script src="${home}/assets/libs/layui/layui.all.js"></script>
	<script>
		layui.use(['element','layer','form'], function() {
			var element = layui.element;
			var layer = layui.layer;
			var form = layui.form;
			
		});
		
		//获取src值
		$(".layui-nav-child a").on("click", function() {
			var address = $(this).attr("data-src");
			$("iframe").attr("src", address);
		});
		//根据窗口高度设置iframe的高度
		var frame = $("#isFrame");

		var frameheight = $(window).height();
		frame.css("height", frameheight);
		
	</script>


</body>
</html>